﻿<Window x:Class="WpfPaintIntersect.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30" />
            <RowDefinition />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>

        <WrapPanel>
            <Button x:Name="ClearButton" Content="Clear" Width="100" Click="ClearButton_Click" />
            <Button x:Name="EarButton" Content="Intersect" Width="100" Click="EarButton_Click" />
        </WrapPanel>
        <Canvas x:Name="PolyCanvas" Grid.Row="1" Background="Transparent" 
                MouseDown="PolyCanvas_MouseDown" MouseUp="PolyCanvas_MouseUp" MouseMove="PolyCanvas_MouseMove" >
          
        </Canvas>
        <StatusBar x:Name="StatusB" Grid.Row="2" >
            <TextBlock x:Name="PointsBlock" />
        </StatusBar>
    </Grid>
</Window>
